var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2ADManager = require("ADManager");
var $2UIManager = require("UIManager");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_ChipTipUI = /* */function (_cc$Component13) {
  babel_inherits(r, _cc$Component13);
  var _super15 = babel_createSuper(r);
  function r() {
    babel_classCallCheck(this, r);
    return _super15.apply(this, arguments);
  }
  babel_createClass(r, [{
    key: "onLoad",
    value: function onLoad() {
      $2ADManager.default.instance.sdkType == $2ADManager.SDK_TYPE.WeChat && $2ADManager.default.instance.showBanner();
    }
  }, {
    key: "onClickShop",
    value: function onClickShop() {
      $2UIManager.default.instance.openUI("ShopUI");
      $2UIManager.default.instance.closeUI("UpgradeUI");
      $2UIManager.default.instance.closeUI("ChipTipUI");
    }
  }, {
    key: "onClickDraw",
    value: function onClickDraw() {
      $2UIManager.default.instance.openUI("DrawUI");
      $2UIManager.default.instance.closeUI("UpgradeUI");
      $2UIManager.default.instance.closeUI("ChipTipUI");
    }
  }, {
    key: "onClickCloseBtn",
    value: function onClickCloseBtn() {
      $2UIManager.default.instance.closeUI("ChipTipUI");
    }
  }, {
    key: "onDestroy",
    value: function onDestroy() {
      $2ADManager.default.instance.sdkType == $2ADManager.SDK_TYPE.WeChat && $2ADManager.default.instance.hideBanner();
    }
  }]);
  return r;
}(cc.Component);
def_ChipTipUI = cc__decorate([ccp_ccclass], def_ChipTipUI);
exports.default = def_ChipTipUI;